/*
 * @#(ProviderApiAutoConfiguration.java)           2017/9/6
 *
 * Copyright (c) 2017. Hangzhou cloorc Technology Co. LTD
 * 369 Heshan Road, Hangzhou, Zhejiang, 310000, China.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of Hangzhou cloorc Technology Co. LTD ("Confidential Information").
 * You shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement you
 * entered into with Hangzhou cloorc Technology Co. LTD.
 */

package com.cloorc.example.clouds.api;

import com.cloorc.example.fallback.api.ProviderV1ApiFallback;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;

/**
 * First implementation on 20:31 星期三,九月 2017/9/6.
 *
 * @author : Z0228
 * @version : 1.0.0
 * @since : 1.8
 */
@EnableFeignClients
@Configuration
public class ProviderApiAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean
    public ProviderV1ApiFallback providerV1ApiFallback() {
        return new ProviderV1ApiFallback();
    }
}
